rockchip/rk3399: improve pmu powermode configure when suspend
authorLin Huang <[email protected]>
Fri, 20 Apr 2018 07:40:15 +0000 (15:40 +0800)
committerLin Huang <[email protected]>
Tue, 15 May 2018 08:31:00 +0000 (16:31 +0800)
we need to enable PMU_WKUP_RST_EN for pmu powermode configure, since
enable wakeup reset will hold the soc status, so the SOC will not affect
by some power or other single glitch when resume, and keep the soc in the
right status. And it not need to enable DDRIO_RET_HW_DE_REQ, the ddr resume
will do it manual.

Change-Id: Ib4af897ffb3cb63dc2aa9a6002e5d9ef86ee4a49
Signed-off-by: Lin Huang <[email protected]>
plat/rockchip/rk3399/drivers/pmu/pmu.c

index ed1ea8b63c91d8a2d7eb46e836c0de2a27199e1e..014d4047ca198cab4253f66219276f15d9ed427c 100644 (file)
@@ -836,6 +836,7 @@ static void sys_slp_config(void)
                      BIT_WITH_WMSK(PMU_CLR_GIC2_CORE_L_HW));
 
        slp_mode_cfg = BIT(PMU_PWR_MODE_EN) |
+                      BIT(PMU_WKUP_RST_EN) |
                       BIT(PMU_INPUT_CLAMP_EN) |
                       BIT(PMU_POWER_OFF_REQ_CFG) |
                       BIT(PMU_CPU0_PD_EN) |
@@ -853,7 +854,6 @@ static void sys_slp_config(void)
                       BIT(PMU_DDRIO0_RET_DE_REQ) |
                       BIT(PMU_DDRIO1_RET_EN) |
                       BIT(PMU_DDRIO1_RET_DE_REQ) |
-                      BIT(PMU_DDRIO_RET_HW_DE_REQ) |
                       BIT(PMU_CENTER_PD_EN) |
                       BIT(PMU_PERILP_PD_EN) |
                       BIT(PMU_CLK_PERILP_SRC_GATE_EN) |